<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录窗口</title>
    <link rel="stylesheet" type="text/css" media="screen"
          href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <div class="row" style="margin-top: 80px">
        <div class="col-md-4 col-md-offset-4">
            <div class="panel panel-primary">
                <div class="panel-heading">更新</div>
                <div class="panel-body">
                    <form action="${pageContext.request.contextPath}/book/update" method="post">
                        <input type="hidden" name="id" id="hideID" value=${book.id}>
                        <div class="form-group">
                            <label for="name">书名</label> <input type="text"
                                                                        class="form-control" name="name"
                                                                        value=${book.name}>
                        </div>
                        <div class="form-group">
                            <label for="position">位置</label> <input type="position"
                                                                      class="form-control" name="position"
                                                                      value=${book.position}>
                        </div>
                        <div class="form-inline text-right">
                            <button type="submit" class="btn btn-primary">更新</button>
                            <button type="reset" class="btn btn-default" focus>重置</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>

    </div>

</div>
</body>
</html>